import dateJs from "@script/date";

const profile_utils = {
    parseDuty(v) {
        let res = "";
        res += dateJs.weekOfToday(parseInt(v[1]));
        switch(v[2]) {
            case '1': res += "上午一二"; break;
            case '2': res += "上午三四"; break;
            case '3': res += "下午一二"; break;
            case '4': res += "下午三四"; break;
        }
        switch(v[0]) {
            case 'd': res += "（双）"; break;
            case 's': res += "（单）"; break;
        }
        return res;
    }
}

export default profile_utils;